<!-- business -->
<template>
  <div>
    <Tab @searchFn="searchFn" />
    <MainTab ref="mainTabForm" :params="params" :is-show="isShow" />
  </div>
</template>

<script>
import Tab from './components/header.vue'
import MainTab from './components/mainTab.vue'
export default {
  components: {
    Tab,
    MainTab
  },
  data() {
    return {
      params: {
        pageIndex: 1,
        pageSize: 10,
        isRepair: false
      },
      isShow: true,
      obj: {}
    }
  },
  methods: {
    searchFn(obj) {
      this.obj = { ...this.params, ...obj }
      console.log(this.obj)
      this.$refs.mainTabForm.searchUpdate(this.obj)
      console.log(this.$refs.mainTabForm)
    }
  }
}

</script>
<style lang='less' scoped>
</style>
